avoid memory exception in curler