Fixed wrong factory on startup