fix font paths and img paths to magic paths