fixed bug with checking long date