Partial render can not use locals bug fixed.