fixed bug where positions would show up in the wrong order