fixed bug (missing parameter), missing encoding