srcdir bug fix for decoding