Fixed bugs and updated to jenkins 1.578