[#545] Fixed the ordering of the log statement