fixed filter handling for no attachment handling