fix getting a already loaded pattern