Fixed issue when generating slash command registration