Try to fix error at analysis of SQ (bad class cast)