Fix attribute error. Fixes the issue in album upload