fixed mining issues