Fix alignment problem in the Gem interface