fixed bug in ladder mechanics