Fixed incorrect type in encoder/decoder callbacks