Fixed type checking select input