fix get by hours