Fixes script output