detector was returning bottomY coordinate one too high