Fixed sources encoding problem