fixed platform bug: width and depth were switched