Fix template paths