remove inline style and fix paths