fix choosing type