Fixed bug in declare local variable action.