fixed multiple loggings