Fixing class-hinted parameters checks