Fix "Scroll has no scrollX property" error