fix bug with panels colliding