Update license and bug fix