bugfix script