fix parser of partial application