Fixed the check functions