fix checking nginx key