fixing the extra hours bug