Fix some problems with fllog and trace