Fix views class create