fixed legend issue v9