Fixed a warning of unsafe operations