Re-added logic to handle invalid default attack