fix a bug in liberal safety checker