fixes wrong decode