fix entry check