Corrected warnings in release build