Fix for Issue #567

I don't have much expirence coding or with open source projects, but Issue #567 seemed like a simple fix, and so here it is.