fix view define to work under V7.0