calculate right col (fix #49)