Fixed hit testing bug