fixed bug for mechanical interaction