fix lazy detection