Fixed the actions array to remove empty strings