Fixed the looping bug

Was so tired of that bug