Fix open check