fixed a second bug, now it's an endlessloop -.-