[fix] Fix a `too much recursion` bug in FireFox. Fixes #4