Fixed crash after proxy type change