fixed release build warnings, confirmAmount name bug