fix bugs caused by unmatched name of models and views