fixed permalink bug