1.8.1 beta 1: fix setLevel called twice