Fixed bug where options were getting set to undefined with picker