Fixed regression bug where safe mode no longer work.

Signed-off-by: crynobone <crynobone@gmail.com>