Fix the invalid safe spawn created by the flat generator

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>