add if condition to avoid harmless error when opening the zoom