corrected setHours method error