Fixed error produced by popup value when data buffer is empty