fix some error on GCM