fixing id in controller