Corrected the LTL logic