fix safe error