Fixes issues with update scripts