Fix id null when proxy is not initialized