key encoding fixed. #70