Fixed bug where syms file is cleaned in the wrong stage