Magic number fix (tentatively fixes #5)
Code taken from https://github.com/cezarsa/silver_bird/issues/287#issuecomment-55152920