Several backend fixes