Fixed bug in creating stratum work.