Fixed session remove code