Fix if has hours check.