fix dangerous error