Use the fieldname from the options

Currently this code is broken if someone has changed the default field name from "position" to something else. It should be using the fieldname from the options.