Fix error when resizing anchor bar