fix bug legal