Fixed bug with friction.