Fixing the hide after scroll function