fixed release build warnings