fix dogecoin problems from https://github.com/dogecoin/dogecoin/issues/148