Fixed a bug in logging statement.