lib: fix stupid bug (missing match case)