Fix #4 reported by putilaozu.