fixed YAML-related bugs