fixed bad decode