Fix for resultCode check.