fixed #14 thx @DavidBruant