fix warnings in savings code