Debugging decode function error...