remove unnecessary cast for map_library return