hopefully fixing infinite loop