fixed permalink printing