Cycle detection
windows safari 5.1 bug