Fix for BUKKIT-3043

I believe this should fix the BUKKIT-3043 error.

https://bukkit.atlassian.net/browse/BUKKIT-3043