Fix/test and make permalink random