fixed Issue #3, thanks to @ErwanLeroux