Hotfix: check the length of entrypoint before comparing.