Fixed error assinging action to wrong object