Fixed doCorner