Fix for invalid type marker check