Window callbacks bug fixed.