Fixed repo + session issues