Fixed bug with selects not setting to their correct values. And more stuff.