Fixed the pitch values inside the pyramid loop