Fixed the arguments being passed incorrectly