LURE: Fix bounds checking

CID 1003986 and CID 1003990.