Fix for Refresh button.

Fix on the empty array issue.