Fixed bugs on select box