Error when trying to transfer data between controllers