fix warnings in release build