Fixed bug with 1d surfaces

@sbriseid Can you take a look at this?