fix check type