script minifix