fixed resourceRender callback :)