fix detail script