Fix problems

исправление проблем: https://github.com/novacoin-project/novacoin/issues/57 и https://github.com/novacoin-project/novacoin/issues/52