fixed bug with annotation errors handling