bug in left/right allocation