fix permalink call