fixing citation parsing