Fixed the friction bug