fix bugs in rejig