fixed problem where jar file could not read resources