fixed weird bug #1