Fix Resource error