Computer hangs at the middle of my task