Fixed the null value for position

PR for #2321
@niden Hopefully the right branch now ;)