fixing bug in progress