fixing broken mining