static analyzer
fix bug introduced durring cleanup