fixed problem with hiding spans