fixed an issue with check_hits function call