Prevent assertion failure when trying to complete the prompt