Fixed ugly inplay bug