Fix view variables initialisation