trying to fix scroll bug