Fixed reading resources from the jar