fix parent scope