Workaround that allows proper scrollTo behaviour