fixed pagination duplicating #dynamic