Fixed resource file bug