fix a bug (selecting fk value)