fixed straight bug