fix automatic view creation