Fix layer.filter for  conversion