Cleanup
Prevent crash with nil positions