Fix some sliding stuff (I am cargo-culting this...)