Fixed bug with position values.