Fixed issue on showError method