Fixes task constructors.