Fixing type checking.