corner bugfix