Correct errors when not passing second parameter