ECMS-4767 some fix for migrate views