fixed bug in builtin xpm loader