Fix resolvation. add debug.