tried to fix the bug of endless reload, this maybe a solution