Fix resource error