Fixed multiple "Unsafe" warnings
Fixed multiple "WARNINGS" and "Potential Loss of Data"