IV should be random and stored with encrypted text as first block. During decryption read IV again.