static: fix bug when building graphs on the same slot

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>