fixing permalink bug