Fixed crash in surface clipper