BugFix to sgminer 5  compatibility