fix scroll and resize