Fix sessions helper