Fixing resolve error