Fixed decode error to prevent acting on invalid byte