Fixed some linkage for MAL