Fixed bug where options were appended on top of each other