Fixed templates metadata update on execution.