Fixed error in case for creating attribution