Fixed bug in surface filter