There was a problem with assigning the IV, I accidentally was giving it the same value as the AES key.