Fixes argument checks.