Fixed mine bug