fix two problems with machine sinking: