fix mines count bug