useless setTimeout call fixed