losp: fix crash