fixed bug with ses callback