Resolved index out of bounds exception in Album