fix warning about locked wallet