bugfix for left/right positioning