Fixed changed check=>type