Fix for buf parameter from Galaxy