[Parser] Fixed bug with prototype adding (first case)