The real problem was not repeating the statement twice but missing out the first one. But thanks for pointing it out.