fix potential bug where options would be empty