Correcting for slamming into wall