fixed failing loading of types when mounted in rails