by Kail fixed scroll checking