fixed bug causing error on CMS page publication