Fixed animation bug wheere objects would get stuck in corners