fix dropdown type bugs