fix peramlinks