minor backend fixes