fixed opts
fixed so runs with correct window size