Fix issues in medialinks and parser