Fixed naming errors in bagmaker.