Bug fix for action spec generation