Make yaml to handle anchor aliased class correctly