fixed select errors