[localization] Fixes some bugs introduced with the splitting of the laser library.