fixed small bug
handling (splitting) references across multiple surfaces