Fixed bug where position was not updated.