fix for when using scroll