fix bugs with improper MAL link parsing