fix map in scanlib