Fix for undefined response