Fixed an infinit loop bug