Replace eval by safe_eval