fixed a potential bug with the options[data] variable