null pointer fix, stopped setting position to NULL