Fixing wall collision events