Fix overwriting of perspective keys