fix a bug in model

get fields by column