Fixed ticket creating bug