Fixes script problem