fixed: all resources were drawn as red.