fix bug in tasks controller at create