Resolved hoisting errors