Fixed reference bug in models/index.js