Fix #27 : exception on page refresh