empty env issue fix