fix bug of creating select