fix for string based check