Prevent crash in decoder.py