fixed bug when model keys are blank