Fixing ami sizes