fixed error in publish view