fix friction bug