Fixed crashing when iv is not 3 characters