Solved setTimeout error #765