Fixed error caused when using Spigot.