fixed bug with model being null