Fixed the infinite loop i sometimes got