fixed Horizontal Hit Detection issue