[Parser] Fixed int take(ref ... where ref wasn't assigned to the first parameter but to take