fixed bug with checking subject