fixed createLabledDocument