fixed mineral bug