fixing dropdown error