fix ticket validation