solved a bug in the update-script