Bug fix

Bug fix on options.writePosition reference