Luby--Veličković--Wigderson revisited: Improved correlation bounds and pseudorandom generators for depth-two circuits