fixing gcm errors