fix TaskController put and post methods