Fixed issues in when to properly handle multiple params when a promise is resolved.