bugfix in collision handler