fixing an error with the off hours script