It turned out that firefox is not a great pdf viewer. switch to mupdf.