fixed silly logging bug