added script generating fix.