[backend] fix lastmeta comparison