fix constructor parsing bug