fixed bug in safe mode action