a  small bugfix to friction