fixed output map insertion logic error.