Removing erroring yaml keys and values