make sure balance and locked always be positive