Fixed bug that caused switches and gates to appear to have incorrect collisions