fix encodeable bug