Fix 1.8.7 issue
Merge pull request #3 from iNecas/compat

Fix 1.8.7 issue