fixed bug when shrinking platforms.