fixed empty encoding