fixed xresource.nim for #1