fixed calling parse twice