Fix #1014 by adding "Declare local value" quick fix