Fixed bug in declare local action.