fix bugs with minerals