Fixes bug introduced by the session security update