fix pdf not showing filled fields and a rails loading issue