Fixed simpleminer issues reported by clintar