fixed getcurrentilvl bug. fixes #5