Fix batch compilation