fix a bug in liberal safety