Fix custom check