Fixing get task by id issue