fixing bug with commit