fixed a bug in spider