fixed pdf rendering problems and other little things