Fixed a bug where hit was miss