Fix undefined action map to avoid null