fixed more obvious Gate bugs

yes