Fixed bug where wrong role was being attached to asset

Fixed bug where wrong role was being attached to asset