fixed filter related js behavior