Fixed build() custom context argument, now it restores variables correctly.