Potential fix to spawn bug.

Removed use of modulus division which could potentially prevent code
from being called.