Bugfix

Some bugs made it impossible to perform an update